package com.crealth.db;

import java.util.List;

import com.crealth.manager.MybatisManager;
import com.crealth.model.BankSpecialLimitModel;

public class BankSpecialLimitDb {

	public static void insertBankSpecialLimit(BankSpecialLimitModel specialLimit) {
		MybatisManager.specialLimitMapper.insertBankSpecialLimit(specialLimit);
		MybatisManager.commit();
	}
    
    public static List<BankSpecialLimitModel> selectAllBankSpecialLimit() {
    	List<BankSpecialLimitModel> limitls = MybatisManager.specialLimitMapper.selectAllBankSpecialLimit();
    	
    	return limitls;
    }
    
    public static Integer updateBankSpecialLimitByID(BankSpecialLimitModel specialLimit) {
    	Integer res = MybatisManager.specialLimitMapper.updateBankSpecialLimitByID(specialLimit);
    	MybatisManager.commit();
    	
    	return res;
    }
	
}
